home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / Fight / battleinmegaville.swf / scripts / frame_6 / DoAction.as
Text File  |  2006-09-05  |  534b  |  30 lines

  1. if(Key.isDown(38) && !onUp && deflect == -7)
  2. {
  3.    gir.gotoAndPlay("deflect");
  4.    deflect = 2;
  5. }
  6. if(gir._x > girx - 40 && Key.isDown(37) && !onLeft)
  7. {
  8.    gir._x -= 40;
  9. }
  10. if(gir._x < girx + 40 && Key.isDown(39) && !onRight)
  11. {
  12.    gir._x += 40;
  13. }
  14. onLeft = Key.isDown(37);
  15. onRight = Key.isDown(39);
  16. onUp = Key.isDown(38);
  17. if(deflect > -7)
  18. {
  19.    deflect--;
  20. }
  21. if(pts > hi)
  22. {
  23.    hi = pts;
  24. }
  25. pc = Math.round(100 * getBytesLoaded() / getBytesTotal()) + "%";
  26. if(_framesloaded == _totalframes)
  27. {
  28.    pc = "COMPLETE";
  29. }
  30.